package com.example.WeChat.Utiles.RedisData;

import java.time.LocalDateTime;


public class RedisData {
    private Object data;
    private LocalDateTime expire;


    public RedisData() {
    }

    public RedisData(Object data, LocalDateTime expire) {
        this.data = data;
        this.expire = expire;
    }

    /**
     * 获取
     *
     * @return data
     */
    public Object getData() {
        return data;
    }

    /**
     * 设置
     *
     * @param data
     */
    public void setData(Object data) {
        this.data = data;
    }

    /**
     * 获取
     *
     * @return expire
     */
    public LocalDateTime getExpire() {
        return expire;
    }

    /**
     * 设置
     *
     * @param expire
     */
    public void setExpire(LocalDateTime expire) {
        this.expire = expire;
    }

    public String toString() {
        return "RedisData{data = " + data + ", expire = " + expire + "}";
    }
}
